Skip to content

test: add automated test coverage#44

Merged
georgidhristov merged 1 commit into
mainfrom
feat/add-automated-test-coverage
May 16, 2026
Merged

test: add automated test coverage#44
georgidhristov merged 1 commit into
mainfrom
feat/add-automated-test-coverage

Conversation

@georgidhristov
Copy link
Copy Markdown
Collaborator

Closes #40

Summary

Adds automated test coverage for DebugProbe.AspNetCore middleware, rendering, configuration, and compare validation behavior.

Added Test Coverage

Middleware

  • middleware execution flow
  • request pipeline continuation
  • ignored/debug path handling
  • response stream restoration
  • exception handling behavior

Request/Response Capture

  • JSON request body capture
  • JSON response body capture
  • empty body handling
  • large payload handling
  • binary/non-text handling
  • bounded response capture validation
  • max body capture size behavior

Rendering

  • details page rendering
  • payload badge rendering
  • HTML encoding and escaping safety

Compare Validation

  • valid HTTP/HTTPS URL validation
  • invalid scheme rejection
  • localhost validation behavior
  • local compare target option behavior

Configuration

  • default options behavior
  • custom option registration behavior

Additional Changes

  • Add dedicated DebugProbe.AspNetCore.Tests project
  • Add internal visibility for test assembly
  • Add reusable test infrastructure utilities

Result

The project now validates core behavior automatically and reduces regression risk during future refactoring.

@georgidhristov georgidhristov merged commit 266f8df into main May 16, 2026
1 check passed
@georgidhristov georgidhristov deleted the feat/add-automated-test-coverage branch May 16, 2026 13:46
@georgidhristov georgidhristov changed the title Add automated test coverage test: add automated test coverage May 16, 2026
@georgidhristov georgidhristov added the testing Automated tests, test coverage, and validation improvements label May 16, 2026
@georgidhristov georgidhristov linked an issue May 16, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Automated tests, test coverage, and validation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add automated test coverage Engineering Assessment: DebugProbe.AspNetCore

1 participant